﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using KorbeRTR.Models;

namespace KorbeRTR
{
    public class Global
    {
        private static Global Instance;
        public static bool LoginFlag;//登录成功后更新状态栏操作员信息

        public static Global GetInstance()
        {
            return Instance;
        }

        static Global()
        {
            Instance = new Global();
        }
        

        private Global()
        {
            LoginFlag = false;
            FlagRefreshRecipe = false;
            CurrentRecipeView = null;
            CurrentUser = null;
        }


        public User CurrentUser;//当前用户
        public RecipeView CurrentRecipeView;//当前料号
        public bool FlagRefreshRecipe;//刷新主界面料号
    
    }
}
